package paketGUI;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import eu.mvmnt.golfingapp.R;

public class OptionsScreen extends TabActivity implements OnClickListener {

	@Override
	public void onBackPressed() {
		finish();
	}

	@Override
	public void onClick(View v) {

	}

	@SuppressWarnings("deprecation")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.options);

		TabHost tabHost = getTabHost();

		TabSpec accSpec = tabHost.newTabSpec("Konto");
		accSpec.setIndicator("Konto", null);
		Intent accIntent = new Intent(this, OptionsAccScreen.class);
		accSpec.setContent(accIntent);

		TabSpec profSpec = tabHost.newTabSpec("Profil");
		profSpec.setIndicator("Profil", null);
		Intent profIntent = new Intent(this, OptionsProfScreen.class);
		profSpec.setContent(profIntent);

		tabHost.addTab(accSpec);
		tabHost.addTab(profSpec);

	}

}
